using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace MusicEvolution.Database
{
	public class Scraper : DataBaseRow
	{
		DataField _Name;
		DataField _Author;
		DataField _Version;
		DataField _Path;
		DataField _Site;
		DataField _Type;

        public Scraper()
        {
            _Name = new DataField("Name", "");
            _Author=new DataField("Author","");
            _Version=new DataField("Version","");
            _Path=new DataField("Path","");
            _Site=new DataField("Site","");
            _Type=new DataField("Type","");

            base.Add(_Name);
            base.Add(_Author);
            base.Add(_Version);
            base.Add(_Path);
            base.Add(_Site);
            base.Add(_Type);


        }

		public string Name
		{
			get
			{
                return _Name.Value;
			}
			set
			{
                _Name.Value = value;
			}
		}

		public string Author
		{
			get
			{
                return _Author.Name;
			}
			set
			{
                _Author.Name = value;
			}
		}
        //TODO: Really int instead of string?
		public int Version
		{
			get
			{
                return Convert.ToInt32(_Version.Value);
			}
			set
			{
                _Version.Value = value.ToString();
			}
		}

		public string Path
		{
			get
			{
                return _Path.Value;
			}
			set
			{
                _Path.Value = value;
			}
		}

		public string Site
		{
			get
			{
                return _Site.Value;
			}
			set
			{
                _Site.Value = value;
			}
		}

		public int Type
		{
			get
			{
                return Convert.ToInt32(_Type.Value);
			}
			set
			{
                _Type.Value = value.ToString();
			}
		}
	}
}
